package ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.completeRFCPanel;

import java.awt.BorderLayout;
import java.awt.Color;

import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.Mainframe;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.SimpleCMSPanel;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.completeRFCPanel.completeRFCSubs.CompleteRFCCompletePanel;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.completeRFCPanel.completeRFCSubs.CompleteRFCFunctionPanel;

public class CompleteRFCPanel extends SimpleCMSPanel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private CompleteRFCFunctionPanel functionPanel;
	private CompleteRFCCompletePanel listPanel;
	private Mainframe mainframe;
	
	public CompleteRFCPanel(String name, Mainframe parent) {
		super(name, parent);
		
		this.mainframe = parent;
		
		this.setLayout(new BorderLayout());
		this.functionPanel = new CompleteRFCFunctionPanel(this);
		this.listPanel = new CompleteRFCCompletePanel(this);
		
		this.add(listPanel, BorderLayout.CENTER);
		this.add(functionPanel, BorderLayout.EAST);
	
		this.setBackground(Color.GREEN);
	}

	public Mainframe getMainframe() {
		return mainframe;
	}

	public CompleteRFCFunctionPanel getFunctionPanel() {
		return functionPanel;
	}

	public CompleteRFCCompletePanel getListPanel() {
		return listPanel;
	}

	
}
